package com.quantdo.apex.elasticjob.boot;

import com.dangdang.ddframe.job.api.ShardingContext;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;

/**
 * @author chenkuan
 * @version v1.0
 * @desc 调度Job任务实例接口
 * @date 2019/12/11 011 10:53
 */
public interface Job extends ApplicationListener<ApplicationEvent> {
	/**
	 * job执行.
	 *
	 * @param context job上下文信息
	 */
	void handle(ShardingContext context);
}
